/*	talmud - The TALMUD roguelike
 * Copyright (C) 2012, talmud contributors
 *
 *  This program is free software; you can redistribute it and/or modify it
 *  under the terms of Version 2 of the GNU General Public License as published
 *  by the Free Software Foundation.
 *
 *  This program is distributed in the hope that it will be useful, but WITHOUT
 *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *  FITNESS FOR A PARTICULAR PURPOSE. See Version 2 of the GNU General Public
 *  License for more details.
 *
 *  You should have received a copy of the GNU General Public License along
 *  with this program; if not, write to the Free Software Foundation, Inc.,
 *  59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */

#ifndef itemmanage_h
#define itemmanage_h

#include <stdint.h>
#include "item.h"

#define ITEMMAX		32768

void InitItemDescs(void);
const char *UnknownItemDesc(uint8_t itype);
void GenItemAt(uint8_t x, uint8_t y, uint8_t level, uint8_t branch);
uint16_t GetItemsAt(uint8_t x, uint8_t y, uint8_t **ids);
void AddItemAt(const item_t *item, uint8_t x, uint8_t y, uint8_t level, uint8_t branch);
void DrawItems(void);
void DeleteItem(uint32_t itemidx);

#endif
